Skip to content

Conversation

@hidehiroanto
Copy link

jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'generation'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.

llama-cpp-python failed to load SmoLLM3 because its chat template had {% generation %} and {% endgeneration %} tags, so I copied the solution from here.

Added a custom Jinja2 extension to ignore generation tags in templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant